package bubbleindex;

import java.io.IOException;
import java.util.concurrent.ExecutionException;

/**
 *
 * @author ttrott
 */
    public class MyThread extends Thread {
        @Override
        public void run() {
            synchronized(this) {

                try {
                    BubbleIndex.RunBubbleIndex();
                    notify();

                } catch (IOException | ExecutionException | InterruptedException ex) {
                    System.out.println("Interrupted Exception. Code 006.");
                    BuildIndex.Stop = true;
                    this.interrupt();
                    notify();

                }
            } 
        }
    }
